package com.lagou.niancheng.lagou.service.common;

/**
 * com.lagou.niancheng.lagou.service.common.CommonErrorCode
 *
 * @author 大犬
 * @date 2020/6/29
 */
public enum CommonErrorCode implements ErrorCode {
    /**
     * 通用错误
     */
    SYSTEM_ERROR("COM-SYS-000", "系统错误请联系管理员"),

    REMOTE_REQUEST_ERROR("COM-SYS-001", "远程请求错误:{0}");


    private String errorCode;
    private String errorMsg;

    CommonErrorCode(String errorCode, String errorMsg) {
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }

    @Override
    public String getErrorCode() {
        return errorCode;
    }

    @Override
    public String getErrorMsg() {
        return errorMsg;
    }
}
